package com.dgac.publicresource.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
public class Orders {
    /**
     * 订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 摊位id
     */
    private Long shopId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 订单状态
     * 0:订单已完成, 1:待取餐, 2:需退款, 3:已退款
     */
    private Integer isOk;

    /**
     * 订单优惠后消费金额
     */
    private Long money;

}
